using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace HRM.Models.Mapping
{
    public class tk_CTKhacMap : EntityTypeConfiguration<tk_CTKhac>
    {
        public tk_CTKhacMap()
        {
            // Primary Key
            this.HasKey(t => t.Id);

            // Properties
            this.Property(t => t.TenNV)
                .HasMaxLength(50);

            this.Property(t => t.MaDDKy)
                .HasMaxLength(50);

            this.Property(t => t.MaTKCTKhac)
                .HasMaxLength(10);

            // Table & Column Mappings
            this.ToTable("tk_CTKhac");
            this.Property(t => t.Id).HasColumnName("Id");
            this.Property(t => t.SoLuong).HasColumnName("SoLuong");
            this.Property(t => t.TenNV).HasColumnName("TenNV");
            this.Property(t => t.MaDDKy).HasColumnName("MaDDKy");
            this.Property(t => t.MaTKCTKhac).HasColumnName("MaTKCTKhac");
        }
    }
}
